#include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
#include <cmath>
#include <cstring>

int* change_array( int a[], int len)
{
	int* b = new int[len];
	for ( int i =0; i < len; i++)
	b[i] = a[len-i-1];
	return b;
 }
int main()
{
	int a[10]={0,1,2,3,4,5,6,7,8,9};
	int len=sizeof(a)/sizeof(a[0]);
	int *c;
	c=change_array(a,len);
	for ( int i =0; i < len; i++) cout << *(c+i);
	return 0;
}


